Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

352
Views
Input type "datetime-local" keep default value highlight using min attribute

I am working on a datetime picker input in Angular using the input type: "datetime-local". It works well and the input looks like that:

enter image description here

I have already set the minimum attribute to the now date and a default value according to my database.

enter image description here

Here you can see the default date value as: "21/12/2021 10:45". But opening the input the "selected" value is the minimum date as: "29/12/2021 10:45".

My question is: How can I highlight the current value and not the minimum?

My HTML input:

<input matInput formControlName="datetime" [min]="getNowDate()" type="datetime-local" [placeholder]="_input.short_gui_name | titlecase">
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!